import { lazy } from "react";
import {createBrowserRouter} from "react-router-dom"

const Home=lazy(()=>import('../pages/Home/Home'))
const List=lazy(()=>import('../pages/List/List'))
const Login=lazy(()=>import('../pages/Login/Login'))
const Layout=lazy(()=>import('../pages/Layout/Layout'))
const Nan=lazy(()=>import('../pages/Nan/Nan'))

const router=createBrowserRouter([
    {
        path:'/',
        element:<Home/>
    },
    {
        path:'/List',
        element:<List/>
    },
    {
        path:'/Login',
        element:<Login/>
    },
    {
        path:'/Nan',
        element:<Nan/>
    },
    {
        path:'/Layout',
        element:<Layout/>
    }
])

export default router
